package cn;

public class Factorial {
	int recton(int n) {
		int ji = 1;
		for (int i = 1; i < n; i++) {
			ji *= i;
		}
		return ji;
	}

	public static void main(String[] args) {
		Factorial f = new Factorial();
		System.out.println("输出一个数的阶乘：" + f.recton(10));

	}

}
